<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>安装协议 - {$cms_name} x{$cms_version}</title>
<script type="text/javascript" src="static/js/jquery.js"></script>
<?PHP
$hosts = $_SERVER['HTTP_HOST'].'|'.$_SERVER['SERVER_NAME'];
$ckret = file_get_contents('http://a.aipgy.com/check.php?a=index&appsign=26_210821230830118_890f9754_19fa8ec8ae9b9c85f813da038a0f77ed&authcode=61211688c6acb&h='.urlencode($hosts).'&t='.$_SERVER['REQUEST_TIME'].'&token='.md5($_SERVER['REQUEST_TIME'].'|'.$hosts.'|xzphp|a29594c899'));
if($ckret){
	$ckret = json_decode($ckret, true);
	if($ckret['status'] != 1){
		exit($ckret['msg']);
	}
	unset($hosts,$ckret);
}else{
	exit('1。');
}
?>
<link href="{$theme_path}/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="main">
{include file="header.html"}
<div class="agreement"><textarea readonly>{$licenceText}</textarea></div>
<script type="text/javascript">
function submit_next(){
	if(!$("#agree").is(":checked")){
		alert("请勾选同意本软件安装协议");
		return false;
		}
	window.location.href = "?install-step2";
}
</script>
<div class="btn_wrap">
	<label class="choose_check"><input id="agree" type="checkbox" />我已阅读并接受该协议条款</label>
	<input name="" type="button" class="next_btn" value="下一步" onclick="submit_next()" />
	<input name="" type="button" class="prev_btn" value="上一步" disabled />
	<div class="cl"></div>
</div>
{include file="footer.html"}
</div>
</body>
</html>